<?php

$front_end_com = '';
if (isset($_GET["com"])) {
    $front_end_com = trim($_GET["com"]);
}
switch ($front_end_com) {
    case "":
        include_once 'components/com_new_item/index.php';
        break;
    case "com_content":
    case "com_item":
    case "com_cart":
    case "com_payment":
    case "com_new_item":
    case "com_search":
    case "com_procedure":
    case "com_contact":
    case "com_gallery":
        $file_path = "components/$front_end_com/index.php";
        include_once($file_path);
        break;
    default:
        $file_path = "components/$front_end_com/$front_end_com.html.php";
        if (file_exists($file_path)) {
            include_once($file_path);
        } else {
            $core_class->_redirect(".");
        }
        break;
}
?>